package ma.platform.server.upms.rpc;

import jakarta.annotation.Resource;
import ma.platform.server.core.util.R;
import ma.platform.server.upms.api.entity.SysLog;
import ma.platform.server.upms.api.rpc.RemoteLogService;
import ma.platform.server.upms.service.SysLogService;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * Copyright:
 * Author:
 * Description:
 * Created by 李林山 on 2024/8/18
 */
@Component
public class RemoteLogServiceImpl implements RemoteLogService {

    @Resource
    private SysLogService sysLogService;

    @Override
    public R<Boolean> saveLog(SysLog sysLog) {
        return R.ok(sysLogService.saveLog(sysLog));
    }
}
